xen/arm: Move p2m context save/restore in a separate function
authorJulien Grall <julien.grall@linaro.org>
Wed, 19 Mar 2014 15:43:37 +0000 (15:43 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 1 Apr 2014 10:18:37 +0000 (11:18 +0100)
commit84ca4629d0aa71dc45c969f625d069373fb88828
tree33c769a38b1026ead3419961ab6eec20c9153797
parentbbd3eeda9f95ccf486482b0c1737a65714390d35
xen/arm: Move p2m context save/restore in a separate function

Introduce p2m_{save,restore}_state to save/restore p2m context.

The both functions will take care of:
    - VTTBR: contains the pointer to the domain P2M
    - Update HCR_RW if the domain is 64 bit
    - SCTLR: contains bit to know if the MMU is enabled or not

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Tim Deegan <tim@xen.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/domain.c
xen/arch/arm/p2m.c
xen/include/asm-arm/p2m.h